package com.yellow.service.impl;

import com.alibaba.dubbo.config.annotation.Service;
import com.yellow.dao.UserDao;
import com.yellow.pojo.User;
import com.yellow.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.transaction.annotation.Transactional;

@Service(interfaceClass = UserService.class)
@Transactional
public class UserServiceImpl implements UserService {

    @Autowired
    private UserDao userDao;

    /**
     * 多表联合查询
     *
     * @param username
     * @return
     */
    @Override
    public User findUserByUserName(String username) {
        return userDao.findUserByUserName(username);
    }
}
